import Quill from 'quill';
const BetterIcons = Quill.import('ui/icons');

import CardBlot from './formats/card';
import cardIcon from './icons/card';
BetterIcons.card = cardIcon;

import DividerBlot from './formats/divider';
import dividerIcon from './icons/divider';
BetterIcons.divider = dividerIcon;

import EmojiBlot from './formats/emoji';
import emojiIcon from './icons/emoji';
BetterIcons.emoji = emojiIcon;

import FileBlot from './formats/file';
import fileIcon from './icons/file';
BetterIcons.file = fileIcon;

import TagBlot from './formats/tag';
import tagIcon from './icons/tag';
BetterIcons.tag = tagIcon;

import DragonBlot from './formats/dragon';
import dragonIcon from './icons/dragon';
BetterIcons.dragon = dragonIcon;

import SnakeBlot from './formats/snake';
import snakeIcon from './icons/snake';
BetterIcons.snake = snakeIcon;

import PieBlot from './formats/pie';
import pieIcon from './icons/pie';
BetterIcons.pie = pieIcon;

import MindBlot from './formats/mind';
import mindIcon from './icons/mind';
BetterIcons.mind = mindIcon;

import PdfBlot from './formats/pdf';
import pdfIcon from './icons/pdf';
BetterIcons.pdf = pdfIcon;

Quill.register(
  {
    'formats/card': CardBlot,
    'formats/divider': DividerBlot,
    'formats/emoji': EmojiBlot,
    'formats/file': FileBlot,
    'formats/tag': TagBlot,

    'formats/dragon': DragonBlot,
    'formats/snake': SnakeBlot,

    'formats/pie': PieBlot,
    'formats/mind': MindBlot,
    'formats/pdf': PdfBlot,

    'ui/icons': BetterIcons,
  },
  true,
);

export default Quill;
